#include "imageitemwidget.h"

ImageItemWidget::ImageItemWidget(QWidget *parent, const QString& imgPath)
	: QWidget(parent)
	, ui(new Ui::ImageItemWidgetClass())
{
	ui->setupUi(this);
	this->m_imgPath = imgPath;
	bool success = this->m_pixmap.load(m_imgPath);
	if (success) {
		ui->label->setPixmap(this->m_pixmap);
	}
}

ImageItemWidget::~ImageItemWidget()
{
	delete ui;
}
